package com.jsh.erp.controller.person;

import com.jsh.erp.datasource.entities.personEntity.Menu;
import com.jsh.erp.service.personMessage.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 胡振明
 * @date 2022-11-26 12:09:54
 * @description
 */
@RestController
@RequestMapping("/system/config")
public class PersonConfigController {
    @Autowired
    MenuService menuService;
    @GetMapping("/menu")
    public List<Menu> getMenus() {
        return menuService.getMenus();
    }
}
